import org.junit._
import org.junit.Assert._
import play.test._
import play.db.jpa._
import models._
 
class BasicTest extends UnitTest {
 
    @Test
    def aVeryImportantThingToTest() {
        assertEquals(2, 1 + 1)
    }
	
	@Test
	def createAndRetrieveUser() {
		// Create a new user and save it
		new User("bob@gmail.com", "secret", "Bob").save()
	 
		// Retrieve the user with bob's email address
		val bob = find[User]("byEmail", "bob@gmail.com").first
	 
		// Test 
		//assertNotNull(bob)
		//assertEquals("Bob", bob.fullname)
	}
 
}